Synchronization_Kernel Interface

Synchronization
<linux/delay.h>
<linux/timer.h>
동기화 관련 함수
void sleep_on(struct wait_queue **q); //deprecate
void sleep_in_interruptible(struct wait_queue **q); //deprecate
// q event sleep, uninterruptible/interruptible
wait_event(queue, condition); // macro
wait_event_interruptible(queue, condition);
/* condition 1 wait, queue event sleep
uninterruptible/interruptible */
void wake_up(struct wait_queue** q);
void wake_up_interruptible(struct wait_queue** q);
// sleep_on, wait_event sleep task .